# -*- coding: utf-8 -*-

import unittest
from wolfox.foxit.source.check import check


class CheckTest(unittest.TestCase):
    #只测试通路
    def test_throught(self):
        from django.core.management import setup_environ
        import wolfox.foxit.settings as settings
        setup_environ(settings)
        from django.db import connection
        check(connection)
        self.assertTrue(True)

if __name__ == "__main__":
    import logging
    logging.basicConfig(filename="test.log",level=logging.DEBUG,format='%(name)s:%(funcName)s:%(lineno)d:%(asctime)s %(levelname)s %(message)s')    
    unittest.main()    
